package com.cn.demo.adapter.two;

import com.cn.demo.adapter.one.Adaptee;

/**
 * 描述
 *
 * @author wangjf
 * @version 1.0
 * @createDate 2020/1/7 13:51
 * @projectName demo
 */
public class ObjectAdaptee implements ObjectTarget {

    private Adaptee adaptee;

    public ObjectAdaptee(Adaptee adaptee) {
        this.adaptee = adaptee;
    }

    @Override
    public void runold() {
        System.out.println("目标调用前");
        this.adaptee.run();
        System.out.println("目标调用后");
    }
}
